<!DOCTYPE html>
<html lang="en">

	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
		<meta name="description" content="">
		<meta name="author" content="">
		<!-- STYLESHEETS -->
		<!--[if lt IE 9]><script src="../../js/flot/excanvas.min.js"></script><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
		<link rel="stylesheet" type="text/css" href="../../css/cloud-admin.css">
		<link rel="stylesheet" type="text/css" href="../../css/themes/default.css" id="skin-switcher">
		<link rel="stylesheet" type="text/css" href="../../css/responsive.css">
				<link href="../../font-awesome/css/font-awesome.min.css" rel="stylesheet">
		<!-- file-input -->
		<link rel="stylesheet" type="text/css" href="../../js/file-input/fileinput.css" />
		<!-- datatable -->
		<link rel="stylesheet" href="../../js/datatables/datatable.css">
		<!-- WIZARD -->
		<link rel="stylesheet" type="text/css" href="../../js/bootstrap-wizard/wizard.css" />

	</head>

	<body>
		<header class="navbar clearfix" id="header">
		</header>

		<!-- PAGE -->
		<section id="page">
			<!-- SIDEBAR -->
			<div id="sidebar" class="sidebar">
			<div class="sidebar-menu nav-collapse">
						
						<!-- SIDEBAR MENU -->
						<ul>							
							
							
						</ul>
						<!-- /SIDEBAR MENU -->
					</div>

			</div>
			<!-- /SIDEBAR -->
			<div id="main-content">
				<div class="modal fade" id="modify_config" tabindex="-1" role="dialog"  aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content" style="width: 1400px;margin-left: -300px">
							<div style="width: 1300px;margin-left: 50px;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title">修改订单</h4>
								</div>
								<div class="box">
									<div class="box-body">
										<div class="form-group" style="height:100px;    border: 1px solid #5e87b0;">
											<table id="source_sku_list" class="table table-bordered">
												<thead>
													<tr>
														<th>商品名称</th>
														<th>SKU编码</th>
														<th>颜色/规格</th>
														<th>尺码</th>
														<th>单价</th>
														<th>数量</th>
														<th>小计</th>
														<th>销售类型</th>
													</tr>
												</thead>
												<tbody style="height: 200px">														
												</tbody>
											</table>
										</div>
									</div>
								</div>
								<div class="box">
									<label class="control-label col-md-2 " style="width:100px;">skuCode：</label>
										<div class="col-md-4" style="margin-top: -10px;">
											<input type="text" class="form-control" autofocus="autofocus" onkeypress="return event.keyCode>=48&&event.keyCode<=57" ng-pattern="/[^a-zA-Z]/" id="m-sku-code" maxlength="20" />
										</div>
										<a href="javaScript:;" class="btn btn-success saveModify" style="float: right;">
											 保存修改
										</a>
								</div>
								<div class="box">
									<div class="box-body">
										<div class="form-group" style="height: auto;border: 1px solid #5e87b0;">
											<table id="new_sku_list" class="table table-bordered">
												<thead> 
												<tr>
													<th>商品名称</th>
													<th>SKU编码</th>
													<th>颜色/规格</th>
													<th>尺码</th>
													<th>单价</th>
													<th>数量</th>
													<th>小计</th>
													<th>销售类型</th>
													</tr>
												</thead>
												<tbody>	
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="container">
					<div class="row">
						<div id="content" class="col-lg-12">
							<!-- PAGE HEADER-->
							<div class="row">
								<div class="col-sm-12">
									<div class="page-header">
										<!-- STYLER -->

										<!-- /STYLER -->
										<!-- BREADCRUMBS -->
										<ul class="breadcrumb">
											<li>
												<i class="fa fa-home"></i>
												<a href="index.html">首页</a>
											</li>
											<li>
												<a href="#">订单管理</a>
											</li>
											<li>订单详情</li>
										</ul>
										<!-- /BREADCRUMBS -->

									</div>
								</div>
							</div>
							<!-- /PAGE HEADER -->
							<!-- SAMPLE -->

							<div class="row">
								<div class="col-md-12" style="background-color:#ffffff">
									<div class="box" style="margin-top:10px">
										<div class="box-title" style="border-bottom:1px solid #5e87b0;line-height:38px">
											<h4><i class="fa fa-file" style="color:red"></i>订单信息</h4>
											<a class="btn btn-default" href="order_list.html" style="float:right">返回订单列表</a>
										</div>
										<div class="box-body">
											<div class="form-group  mrg-bt10">
												<label class="control-label col-md-2 " style="width:100px">订单编号：</label>
												<div class="col-md-2 inline" id="orderId" style="width: 110px">
												</div>
												<label class="control-label col-md-2 " style="width:100px">订单状态：</label>
                                                <div class="col-md-1 inline" id="orderStatus">
												</div>
												<label class="control-label col-md-2 " style="width:100px">下单时间：</label>
												<div class="col-md-2 inline" id="createTime" style="width: 150px">
												</div>
												<label class="control-label col-md-2 " style="width:100px">订单来源：</label>
                                                <div class="col-md-2 inline" id="fromId" style="color:red;width: 150px">
												</div>

												</div>
                                            <div class="form-group  mrg-bt10">
                                                <label class="control-label col-md-2 " style="width:100px">订单类型：</label>
                                                <div class="col-md-2 inline" id="orderType" style="color:red;width: 110px">
                                                </div>
                                                <label class="control-label col-md-2 " style="width:100px">下单平台：</label>
                                                <div class="col-md-2 inline" id="platformName" style="color:red;width: 110px">
                                                </div>
                                                <label class="control-label col-md-2 " style="width:100px">订单备注：</label>
                                                <div class="col-md-2 inline" id="userRemark" style="color:red;width: 110px">
                                                </div>
                                            </div>
											</div>
											<div class="form-group  mrg-bt10 cancel" style="display:none">
												<label class="control-label col-md-2 " style="width:100px">关闭时间：</label>
												<div class="col-md-2 inline" id="cancelTime">
												</div>
												<label class="control-label col-md-2 " style="width:100px">关闭原因：</label>
												<div class="col-md-4 inline" id="cancelReason">
												</div>
												
											</div>
										</div>
									</div>
									<div class="box">
										<div class="box-title" style="border-bottom:1px solid #5e87b0">
											<h4><i class="fa fa-user" style="color:#eea236"></i>收货信息</h4>
										</div>
										<div class="box-body">
											<div class="form-group mrg-bt10">
												<label class="control-label col-md-2" style="width:100px">收货人：</label>
												<div class="col-md-2 inline" id="receiver">
												</div>
												<label class="control-label col-md-2" style="width:100px">电话：</label>
												<div class="col-md-2 inline" id="telPhone">
												</div>
												<label class="control-label col-md-2" style="width:100px">地址：</label>
												<div class="col-md-3 inline" id="address">
												</div>
											</div>
											
										</div>
									</div>
									<div class="box">
										<div class="box-title" style="border-bottom:1px solid #5e87b0">
											<h4><i class="fa fa-rmb" style="color:#9db36a"></i>支付信息</h4>
										</div>
										<div class="box-body">
											<div class="form-group  mrg-bt10">
												<label class="control-label col-md-2" style="width:100px">支付方式：</label>
												<div class="col-md-2 inline" id="payType">
												</div>
												
												<label class="control-label col-md-2" style="width:100px">支付金额：</label>
												<div class="col-md-2 inline" id="paidPrice">
												</div>
												<label class="control-label col-md-2" style="width:110px">商家订单号：</label>
												<div class="col-md-2 inline" id="orderPayCode" style="width:110px">
												</div>
												<label class="control-label col-md-2" style="width:130px">新客优惠：</label>
												<div class="col-md-2 inline" id="newCustomPrice" style="width:130px">
												</div>	
												
											</div>
											<div class="form-group  mrg-bt10">	
											   							
												<label class="control-label col-md-2" style="width:120px">N元任选优惠：</label>
												<div class="col-md-2 inline" id="packPrice" style="width:130px">
												</div>
												<label class="control-label col-md-2" style="width:120px">多买优惠：</label>
												<div class="col-md-2 inline" id="bmdisPrice" style="width:80px">
												</div>
												<label class="control-label col-md-2" style="width:80px">满减：</label>
												<div class="col-md-2 inline" id="manjianPrice" style="width:80px">
												</div>
												<label class="control-label col-md-2" style="width:130px">优惠券：</label>
												<div class="col-md-2 inline" id="youhuijuanPrice" style="width:80px">
												</div>
												<label class="control-label col-md-2" style="width:130px">成长基金抵扣：</label>
												<div class="col-md-2 inline" id="accountPrice" style="width:80px">
												</div>
											</div>

										</div>
									</div>
									<div class="box">
										<div class="box-title" style="border-bottom:1px solid #5e87b0">
											<h4><i class="fa fa-truck" style="color:#d9edf7"></i>物流信息</h4>
										</div>
										<div class="box-body logisticsList">
											<div class="form-group  mrg-bt10 ">
												<label class="control-label col-md-2" style="width:100px">物流公司：</label>
												<div class="col-md-2 inline" id="expressCompany">
												</div>
												<label class="control-label col-md-2" style="width:100px">物流单号：</label>
												<div class="col-md-2 inline" id="expressCode">
												</div>
												
											</div>
										</div>
									</div>
									<div class="box">
										<div class="box-title" style="border-bottom:1px solid #5e87b0">
											<h4><i class="fa fa-archive" style="color:#468847"></i>商品信息</h4>
										</div>
										<div class="box-body">
											<div class="form-group" style="height:auto;">
												<table id="sku_list" class="table table-bordered">
													<thead>
													<tr>
														<th>商品名称</th>
														<th>SKU编码</th>
														<th>颜色/规格</th>
														<th>尺码</th>
														<th>单价</th>
														<th>数量</th>
														<th>小计</th>
														<th>销售类型</th>
														<th>备注</th>
														<th>明细状态</th>
														<th>退款状态</th>
														<th>物流单号</th>
														<th>wdt原始单号</th>
														<th>操作</th>
														</tr>
													</thead>
													<tbody>														
													</tbody>
												</table>
											</div>
										</div>
									</div>
									<div class="box">
									  <div class="form-group" style="text-align: right;color:red">
									  <h4>
									    <span id="totalPrice"></span>
									    </h4>
									  </div>
									</div>
								</div>
							</div>

							<!-- /SAMPLE -->

							<div class="footer-tools">
								<span class="go-top">
								<i class="fa fa-chevron-up"></i> Top
							</span>
							</div>
						</div>
						<!-- /CONTENT-->
					</div>
				</div>
			</div>
		</section>
		<!--/PAGE -->
		<!-- JAVASCRIPTS -->
		<!-- Placed at the end of the document so the pages load faster -->
		<!-- JQUERY -->
		<script src="../../js/jquery/jquery-2.0.3.min.js"></script>

		<!-- BOOTSTRAP -->
		<script src="../../bootstrap-dist/js/bootstrap.min.js"></script>
		<!-- COOKIE -->
		<script type="text/javascript" src="../../js/jQuery-Cookie/jquery.cookie.min.js"></script>
		<script type="text/javascript" src="../../js/bootbox/bootbox.min.js"></script>
		<!-- CUSTOM SCRIPT -->
		<script src="../../js/script.js"></script>
		<script src="../../js/common.js"></script>

		<script>
			var AddDetail = function() {
				var userId;
			    var getStatusDesc=function(orderStatus){
			       var str="";
								   switch(orderStatus){
								     case "TradeClosed":str="交易关闭";break;
								     case "WaitingPay":str="待付款";break;
								     case "WaitingCheck":str="待审核";break;
								     case "WaitingSend":str="待发货";break;
								     case "WaitingSign":str="待签收";break;
								     case "TradeSuccess":str="交易成功";break;
								   }
								   return str;
				};
				
				var getDetail = function(orderId) {
					$.ajax({
						type: "get",
						url: App.getContextPath() + "admin/order/orderDetail.do",
						data: {
							orderId: orderId
						},
						async: true,
						success: function(result) {
						if(result!=null){
							userId=result.userId;
						   $("#orderId").html(result.orderId);
						   $("#orderStatus").html(getStatusDesc(result.orderStatus));
						   $("#createTime").html($.getLocalTime(result.createTime));
						   $("#receiver").html(result.receiver);
						   $("#telPhone").html(result.telPhone);
						   $("#address").html(result.provinceName+result.cityName+result.areaName+result.address);
						   var payType = "微信";
						   if(result.payType =='WeChat'&&result.appType=="Small"){
							   payType = "小程序";
						   }else if (result.payType =='Alipay'){
							   payType = "支付宝";
						   }else if(result.payType =='Account'){
							   payType = "成长基金";
						   }
						   
						   $("#payType").html(payType);
                            $("#platformName").html(result.platformName);
						   $("#paidPrice").html(format_thousands(result.paidPrice));
						   $("#expressCompany").html(result.expressCompany);
						   $("#expressCode").html(result.expressCode);
						   $("#sendTime").html(result.sendTime==null?"":$.getLocalTime(result.sendTime));
						   $("#youhuijuanPrice").html(format_thousands(result.youhuijuanPrice));
						   $("#manjianPrice").html(format_thousands(result.manjianPrice));
						   $("#newCustomPrice").html(format_thousands(result.newCustomDisPrice));
						   $("#packPrice").html(format_thousands(result.packDisPrice));
						   $("#bmdisPrice").html(format_thousands(result.bmdisPrice));
						   $("#orderPayCode").html(result.orderPayCode);
						   $("#accountPrice").html(result.accountPrice);
						   $("#fromId").html(result.formId?"小程序":"M站");
						   $("#userRemark").html(result.userRemark);
						   var orderType=result.orderType;
						   var orderDesc="普通订单";
						   if(orderType=="HeXiao")
							   orderDesc="展会订单";
						   if(orderType=="GroupBuying")
							   orderDesc="拼团订单";
						   if(orderType=="KanJia")
							   orderDesc="砍价订单";
						   
						   $("#orderType").html(orderDesc);
						   
						   if(result.orderStatus=="TradeClosed"){
						   	$(".cancel").show();
						   	$("#cancelTime").html($.getLocalTime(result.cancelTime));
						   	$("#cancelReason").html(result.cancelReason);
						   }
						   $("#totalPrice").html("商品金额："+format_thousands(result.productPrice)+"-优惠："
							   +format_thousands(result.newCustomDisPrice+result.packDisPrice+result.groupDisPrice+result.bmdisPrice +result.vipDisPrice)
							   +"-满减："+format_thousands(result.manjianPrice)+"-优惠劵："+format_thousands(result.youhuijuanPrice)
							   +"+运费："+format_thousands(result.expressPrice)+"-成长基金抵扣："+format_thousands(result.accountPrice)
							   +"=实付款："+format_thousands(result.totalPrice));
						   
						   $.each(result.orderDetail,function(index,item){
						   var actionType="普通商品";
						   if(item.promotionType=="JiaJiaGou")
						   		actionType="加价购";
						   if(item.promotionType=="ManZeng")
						   		actionType="满赠";
						   var detailStatus="";
						   var refundStatus="";
						   if(item.detailStatus=="WaitingSend")detailStatus="待发货";
						   if(item.detailStatus=="Audited")detailStatus="已审核";
						   if(item.detailStatus=="WaitingSign")detailStatus="待签收";
						   if(item.refundStatus=="ApplyRefund")refundStatus="申请退款";
						   if(item.refundStatus=="RefundSuccess")refundStatus="退款成功";
						   if(item.refundStatus=="NoRefund")refundStatus="未退款";
						   
						     var tr="<tr><td>"+item.productName+"</td><td>"+item.skuCode+"</td><td>"+item.shortName+"</td>"
						     +"<td>"+item.size+"</td><td price='"+item.salePrice+"'>"+format_thousands(item.salePrice)+"</td><td>"+item.quantity+"</td>"
						     +"<td >"+format_thousands(item.salePrice*item.quantity)+"</td><td pType='"+item.promotionType+"'>"+actionType+"</td>"
						     +"<td>"+(item.remark==null?"":item.remark)+"</td><td>"+detailStatus+"</td><td>"+refundStatus+"</td>"
						     +"<td>"+(item.sendMark==null?"":item.sendMark)+"</td><td>"+(item.outCode==null?"":item.outCode)+"</td>"
									 + "<td><button type=\"button\" detail_id="+item.id+" class=\"btn btn-success modifyDetail\">修改</button></td></tr>";
						     $("#sku_list tbody").append(tr);
						   });
						   //循环物流
						   var str="";
						   if(result.logisticsList!=null){
							   $.each(result.logisticsList,function(index,m){
								   str+='<div class="form-group  mrg-bt10 "><label class="control-label col-md-2" style="width:100px">物流公司：</label>'+
									    '<div class="col-md-2 inline" >'+m.expressCompany+
									    '</div>'+
									    '<label class="control-label col-md-2" style="width:100px">物流单号：</label>'+
									'<div class="col-md-2 inline" >'+m.expressCode+
									'</div><label class="control-label col-md-2" style="width:100px">发货时间：</label>'+
									'<div class="col-md-2 inline" >'+$.getLocalTime(m.sendTime)+
									'</div></div>';
									
							   });
							   $(".logisticsList").empty().append(str);
						   }else{
							   $(".logisticsList").parent().hide();
						   }
						  }
						isModified(orderId);
						}
					}); 
				};
				var showModify = function(){
		   			$("#modify_config").modal("show");
		   			var detailId = $(this).attr("detail_id");
		   			var tr = $(this).parent().parent();
		   			var  productName = tr.find('td:eq(0)').text();
		   			var  skuCode = tr.find('td:eq(1)').text();
		   			var  shortName = tr.find('td:eq(2)').text();
		   			var  size = tr.find('td:eq(3)').text();
		   			var  salePrice = tr.find('td:eq(4)').text();
		   			var  price = tr.find('td:eq(4)').attr("price");
		   			var  quantity = tr.find('td:eq(5)').text();
		   			var  actionType = tr.find('td:eq(7)').text();
		   			var  promotionType = tr.find('td:eq(7)').attr("pType");
		   			var str = "<tr><td detail_id='"+detailId+"'>"+productName+"</td><td name='sSkuCode'>"+skuCode+"</td><td>"+shortName+"</td><td>"+size+"</td>"
		   			+"<td name='sSalePrice'>"+salePrice+"</td><td name='sQuantity'>"+quantity+"</td>"
		   			+"<td>"+format_thousands(price*quantity)+"</td><td name='pType' pType='"+promotionType+"'>"+actionType+"</td>"
		   			+"</tr>";
		   			
		   			$("#source_sku_list").find("tbody").html(str);
		   			$("#new_sku_list tbody").html("");
				}
				var seachNewSku = function(){
					$("#m-sku-code").focus(function(){
						$("#m-sku-code").unbind().keydown(function(event){ 
							if(event.keyCode ==13){
							var skuCode=  $("#m-sku-code").val().trim();
							var sSkuCode= $("#source_sku_list tbody").find("td[name=sSkuCode]").text();
							if(skuCode=="" || skuCode==sSkuCode|| !checkModifyCount()){
							  $("#m-sku-code").val("");
								return false;
							}
							var pType= $("#source_sku_list tbody").find("td[name=pType]").attr('pType');
							console.log(pType)
							console.log(event.keyCode); 
								$.ajax({
									type: "get",
									url: App.getContextPath() + "admin/product/getSkuInfo.do",
									data: {
										skuCode:skuCode,pType:pType
									},
									async: true,
									success: function(item) {
										if(!item) return false;
										
										var str = "<tr><td>"+item.productName+"</td><td sku_id='"+item.skuId+"'>"+item.skuCode+"</td><td>"+item.shortName+"</td><td>"+item.sizeName+"</td>"
							   			+"<td name='nSalePrice'>"+item.salesPrice+"</td><td name='nQuantity' style='width:35.56px'>"
							   			+"<input onkeypress=\"return event.keyCode>=48&&event.keyCode<=57\" ng-pattern=\"/[^a-zA-Z]/\" style='text-align: center;' type='text'/></td>"
							   			+"<td name='subtotal'></td><td name='pType' pType='"+item.promotionType+"'>"+item.promotionType+"</td>"
							   			+"</tr>";
							   			
							   			$("#new_sku_list").find("tbody").append(str);
							   			$("#m-sku-code").val("");
									}
								});
							}
						}); 
					});
					
				}
				var checkModifyCount = function(){
					 var sQuantity=$("#source_sku_list tbody").find("td[name=sQuantity]").text();
					 sQuantity = parseInt(sQuantity);
					var nQuantity = 0;
					var seachSkuCode=  $("#m-sku-code").val();
					$("#new_sku_list tbody").find("tr").each(function(index,item){
						var count = parseInt($(this).find("input").val() ==""?0:$(this).find("input").val());
						var skuCode= $(this).find("td:eq(1)").text();
						if(count ==""||count==0){
							nQuantity = -1;
							return false;
						}
						if(skuCode == seachSkuCode){
							nQuantity = -2;
							return false;
						}
						
						nQuantity = nQuantity + count;
					});
					
						if(sQuantity < nQuantity){
							$.alert("已超过原购买数量");
							return false;
						}
						if( nQuantity == -1){
							$.alert("请输入数量");
							return false;
						}
						if( nQuantity == -2){
							return false;
						}
						
						return true;
				}
				
				var removeModifySku = function(){
					$(this).remove();
				}
				var subtotal = function(){
					if(!checkModifyCount()) return false;
					var quantity = $(this).find('input').val();
					console.log("quantity = "+ quantity);
					var price = $(this).parent().find("td[name=nSalePrice]").text();
					$(this).parent().find("td[name=subtotal]").html(format_thousands(price*quantity));
				}
				var getNQuantity = function(){
					var nQuantity =0;
					$("#new_sku_list tbody").find("tr").each(function(index,item){
						var count = parseInt($(this).find("input").val() ==""?0:$(this).find("input").val());
						nQuantity = nQuantity + count;
					});
					return nQuantity;
				}
				var checkSave = function(){
					if($("#new_sku_list tbody").find("input").length == 0){
						$.alert("无数据")
						return false;
					}
					if(!checkModifyCount()) return  false;
					 var sQuantity=$("#source_sku_list tbody").find("td[name=sQuantity]").text();
					if(getNQuantity() != sQuantity){
						$.alert("修改后数量与原数量不一致");
						return false;
					}
					return true;
				}
				var saveModify = function(){
					
					if(!checkSave()) return false;
					var detailId= $("#source_sku_list tbody").find("td:eq(0)").attr("detail_id");
					console.log(detailId);
					var skuInfos = new Array();
					$("#new_sku_list tbody").find("tr").each(function(index,item){
						var skuInfo ={};
						skuInfo.skuId=$(this).find("td:eq(1)").attr('sku_id');
						skuInfo.quantity=$(this).find("td[name=nQuantity]").find("input").val();
						skuInfos.push(skuInfo);
					});
					var json= JSON.stringify(skuInfos)	
					$.ajax({
						type: "get",
						url: App.getContextPath() + "admin/order/modifyDetail.do",
						data: {
							detailId: detailId,skuInfos:json,userId:userId
						},
						async: true,
						success: function(result) {
							if(result.type=='error'){
								$.alert(result.content);
								
								return false;
							}
							$("#modify_config").modal("hide");
							location.reload();
						}
					});
					
				}
				var isModified = function(orderId){
					$.ajax({
						type: "get",
						url: App.getContextPath() + "admin/order/isModified.do",
						data: {
							orderId: orderId
						},
						async: false,
						success: function(result) {
							console.log(result)
							if(result ==true){
								$(".modifyDetail").attr("disabled",true);
							}
						}
					});
				}
				return {
					init: function() {
						App.init();
						var id=$.getUrlParam("id");
						getDetail(id);
						seachNewSku();
						$("#new_sku_list tbody").unbind().on("dblclick",'tr',removeModifySku);
						$("#new_sku_list tbody").on("focusout",'[name=nQuantity]',subtotal);
						$("#sku_list tbody").on("click",'.modifyDetail',showModify);
						$(".saveModify").unbind().click(saveModify);
					
					
					}
				}
			}();
			$(function() {
				$("#header").load("../head.html");
				///$("#sidebar").load("../menu.html");
				AddDetail.init();
			});
		</script>

		<!-- /JAVASCRIPTS -->
	</body>

</html>